home *** CD-ROM | disk | FTP | other *** search
/ Sears Catalog 2006 Spring/Summer (French Canadian) / SearsCanada-AutomneEte2006-FrenchVersion-WinMac.bin / fr / main.swf / scripts / DefineButton2_375 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2005-12-05  |  713b  |  31 lines

  1. on(release){
  2.    if(submitArray.length < 10)
  3.    {
  4.       itemArray = new Array();
  5.       itemArray.push(catNumVar);
  6.       itemArray.push(quantityVar);
  7.       itemArray.push(priceVar);
  8.       itemArray.push(colourVar);
  9.       itemArray.push(sizeVar);
  10.       itemArray.push(adInfoVar);
  11.       itemArray.push(pageNumVar);
  12.       itemArray.push(descriptionVar);
  13.       submitArray.push(itemArray);
  14.       updateItems();
  15.       descVar = "";
  16.       catNumVar = "";
  17.       quantityVar = "1";
  18.       priceVar = "";
  19.       colourVar = "";
  20.       sizeVar = "";
  21.       adInfoVar = "";
  22.       pageNumVar = "";
  23.       descriptionVar = "";
  24.       pageNumVar = "";
  25.    }
  26.    else
  27.    {
  28.       gotoAndStop("alert");
  29.    }
  30. }
  31.